package com.systemic.dto;

import com.google.gson.annotations.Expose;
import com.systemic.pojo.User;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: LoginUserDto
 * @Description: 供Websocket使用
 * @Author:
 * @CreateTime: 2024-01-02 20:38
 * @Version:
 **/

public class LoginUserDto {

    /* 用户id */
    private Integer uid;
    /* 账号 */
    private String account;
    /* 在线用户列表 */
    @Expose
    List<LoginUserDto> userList = new ArrayList<>();

    public LoginUserDto(Integer uid, String account) {
        this.uid = uid;
        this.account = account;
    }

    public LoginUserDto() {
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public List<LoginUserDto> getUserList() {
        return userList;
    }

    public void setUserList(List<LoginUserDto> userList) {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return "LoginUserDto{" +
                "uid=" + uid +
                ", account='" + account + '\'' +
                '}';
    }
}
